-- GENERATED SPELL FOR [Bloodfury Storm Witch] --


function spell0_4027(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4027', 3000, 1)
end

function spell1_4027(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(6535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4027', 18000, 1)
end

function Sorts_4027(pUnit, Event)
local choix_sorts_4027 = math.random(0, 1)
if choix_sorts_4027 == 0 then
pUnit:RegisterEvent('spell0_4027', 1, 1)
end
if choix_sorts_4027 == 1 then
pUnit:RegisterEvent('spell1_4027', 1, 1)
end
end

function mob4027_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4027', math.random(1500, 3000), 1)
end

function mob4027_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4027_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4027_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4027, 1, 'mob4027_Action')
RegisterUnitEvent(4027, 2, 'mob4027_Leave')
RegisterUnitEvent(4027, 3, 'mob4027_Kill')
RegisterUnitEvent(4027, 4, 'mob4027_Die')
